import request from '@/utils/request'

export default {

  getCoursePageList(courseId) {
    return request({
      url: `/educenter/user-comment/pageCourseComment`,
      method: 'get',
      params: {courseId}
    })
  },
  addCourseComment(comment) {
    return request({
      url: `/educenter/user-comment/auth/saveCourseComment`,
      method: 'post',
      data: comment
    })
  },

  getArticlePageList(articleId) {
    return request({
      url: `/educenter/user-comment/pageArticleComment`,
      method: 'get',
      params: {articleId}
    })
  },
  addArticleComment(comment) {
    return request({
      url: `/educenter/user-comment/auth/saveArticleComment`,
      method: 'post',
      data: comment
    })
  }
}
